<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
          <title>部门添加</title>
          <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
          <script type="text/javascript">
             $(function(){
            	 $("#dname").focus(function(){
            		var txt_value = $(this).val();
            		if (txt_value == this.defaultValue){
            			$(this).val("");
            		}
            	 });
            	 $("#dname").blur(function(){
            		 var txt_value = $(this).val();
            		 if (txt_value == ""){
            			 $(this).val(this.defaultValue);
            		 }
            	 });
            	 $("#ddesc").focus(function(){
            		var txt_value = $(this).val();
            		if (txt_value == this.defaultValue){
            			$(this).val("");
            		}
            	 });
            	 $("#ddesc").blur(function(){
            		 var txt_value = $(this).val();
            		 if (txt_value == ""){
            			 $(this).val(this.defaultValue);
            		 }
            	 });
             });          
          </script>
    </head>
<body>
    <table border="0" width="600px">
	    <tr>
		    <td align="center" style="font-size:24px; color:#666">部门添加</td>
		</tr>
		<tr>
		    <td align="right" > 
		        <a href="javascript:document.getElementById('savaForm').submit();">保存</a> &nbsp;&nbsp;
		        <a href="javascript:history.go(-1)">退回 </a>
		    </td>
		</tr>
	</table>
 <br/>
 <br>
    <form id="savaForm" action="${pageContext.request.contextPath}/department/save" method="post">
	<table style="font-size::16px">
		<tr>
		  <td>部门名称：</td>
		  <td><input type="text" id="dname" name="dname" value="请输入部门名称" /></td>
		</tr>
		<tr>
		  <td>部门介绍：</td>
		  <td><textarea id="ddesc" name="ddesc" rows="5" cols="50" >部门介绍</textarea></td>
		</tr>
	</table>
	</form>
</body>
</html> 